source 'https://github.com/CocoaPods/Specs.git'
#source 'https://github.com/stripe/stripe-ios.git'
#source 'https://github.com/firebase/firebase-ios-sdk.git'

platform :ios, '15.0'

# 禁用新的构建系统以避免PIF问题
install! 'cocoapods', :deterministic_uuids => false

target 'standard' do
use_frameworks!

#网络请求 - 已移除AFNetworking，改用NSURLSession
   # pod 'AFNetworking'
   
   #键盘控制库
   pod 'IQKeyboardManager'
   
   #网络图片请求
   pod 'SDWebImage'
   
   #Model
   pod 'MJExtension'

   #轮播
   pod 'SDCycleScrollView'
   
   #PickerView选择器
   pod 'BRPickerView'

   #类拓展
   pod 'JKCategories'
   
   #分页指示器
   pod 'JXCategoryView'
   
   #数据显示
   pod 'LYEmptyView'
   
   #布局
   pod 'Masonry'
   
   #上下拉刷新
   pod 'MJRefresh'
   
   #钥匙串
   pod 'SAMKeychain'
   
   #UIKIT
   pod 'QMUIKit'
   
   #地图 - 升级到兼容版本解决瓦片不显示问题
   pod 'GoogleMaps', '~> 8.0', :inhibit_warnings => true
   pod 'GooglePlaces', '~> 8.0', :inhibit_warnings => true
   pod 'GoogleSignIn'

   #Firebase
   pod 'FirebaseMessaging'
   pod 'FirebaseCore'

   #支付
   pod 'Stripe'
   pod 'StripeCardScan'
   pod 'StripePayments'
   pod 'StripePaymentsUI'
   
   #图片选择器
   pod 'TZImagePickerController'
   
   #侧边栏抽屉
   pod 'CWLateralSlide'
   
   #动画
   pod 'lottie-ios'
   
   #YYText 富文本库
   pod 'YYText'
   
   #YYImage 图片处理库
   pod 'YYImage'
   
   #YYCache 缓存库
   pod 'YYCache'
   
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
      config.build_settings['ENABLE_BITCODE'] = 'NO'
      config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
      config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
    end
  end
  
  # 修复Xcode 16.4的兼容性问题
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
        config.build_settings['ENABLE_BITCODE'] = 'NO'
        config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
        config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
      end
    end
  end
  
  # AFNetworking已移除，不再需要添加隐私清单文件
end
